import request from "./request.js"

let req = function (path, params, server) {
    return new Promise(function(resolve, reject){
        try {
            request(path, params, function (data) {
                resolve(data);
            }, server)
        }
        catch(err){
            reject(err);
        }
    })
};

export default req;